package ru.marketsoft.reminder.threads;

import javax.swing.*;

/**
 * User: dimka3210
 * Date: 02.03.13
 * Time: 0:29
 */
public class HideInfoTime implements Runnable {
    private JFrame jFrame;

    @Override
    public void run() {
        try {
            Thread.sleep(5000);
            jFrame.setVisible(false);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }

    public HideInfoTime(JFrame frame) {
        this.jFrame = frame;
    }
}
